package Decorator;

/**   
* <p>Description: 装饰类</p>  
* @author zhengjuntao 
* @date 2018年7月24日  
*/  
public class DarkRoast extends CondimentDecorator {

    private Beverage beverage;
    
    public DarkRoast(Beverage beverage) {
        super();
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {

        return beverage.getDescription()+",DarkRoast";
    }

    @Override
    public double cost() {
        
        return beverage.cost()+0.8;
    }

}
